import request from '@/utils/request'
// import qs from 'qs';

export function delCorBat(ids){
  return request({
    url:'/courier/delBatch?'+ids,
    method:'delete',
    // params:ids
  })
}

export function fetchList(query) {
  return request({
    url: '/courier/page',
    method: 'get',
    params: query
  })
}

export function delCor(data) {
  return request({
    url:'/courier/delete',
    method:'delete',
    params:data
  })
}

export function updateCor(data){
  return request({
    url:'/courier/update',
    method:'post',
    params:data
  })
}

export function addCor(data) {
  return request({
    url:'courier/add',
    method:'post',
    params:data
  })
}